package cn.tedu.csmall.product.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 添加属性模版的DTO类
 * @author admin
 */
@Data
public class AttributeTemplateAddNewDTO implements Serializable {

    /**
     *属性模版名称
     * */
    @ApiModelProperty(value = "属性模板名称",required = true,example = "测试模板名称001")
    @NotNull(message = "添加属性模板失败，必须提交属性模板名称")
    private String name;
    /**
     *属性模版名称的拼音
     * */
    @ApiModelProperty(value = "属性模板名称拼音",required = true,example = "ceshishuxingmubanpinyin001")
    @NotNull(message = "添加属性模板失败，必须提交属性模板名称拼音")
    private String pinyin;
    /**
     *关键词列表
     * */
    @ApiModelProperty(value = "属性模板关键词",required = true,example = "测试模板关键词001")
    @NotNull(message = "添加属性模板失败，必须提交属性模板关键词")
    private String keywords;
    /**
     * 排序序号
     * */
    @ApiModelProperty(value = "排序序号",required = true,example = "99")
    @NotNull(message = "添加属性模板失败，必须提交排序序号")
    private Integer sort;
}
